-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial work towards supporting Groups v2 #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some things that caught my eye.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look to bad tbh.
Maybe think about the api.rs
naming, because everything is API in the whole crate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty review, that's not useful.
What about having everything in |
That, or modeled after |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some last very minor nitpicks. Thanks for the work!
I open this PR so we can start discussing about the general direction we want to take for this change.
Expect: dirty code, hacks, ugly things and... being able to fetch the metadata of a group v2 given that you posses its
master_key
(which is part of what the client receives on every new message).I'd mostly like to get some early review, and answers to the following questions:
CredentialsCache
ok? (It's modeled after the cache used in the Java source code)awc::Client
sets theAuthorization
header twice if it's set at the client and request level, so I had to remove it fromget_client
and set it manually everywhere. This is error prone, but I couldn't think of another way.unwrap()
in this change? 💝TODO: